package com.test.mvcservice.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * Created by 20161021 on 2017/11/29.
 */
public interface UserMapper {
    @Select({
            "select name from user where id = #{id}"
    })
    String selectUserName(@Param("id") Integer id);

    @Delete({
            "delete from user where id = #{id}"
    })
    Integer deleteById(@Param("id") Integer id);
}
